﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
Inherits="System.Web.Mvc.ViewPage<IBupro.Models.DepartmentModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	EditPrincipals
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%:Html.Translate("editDepartmentPrincipal")%></h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Department <%: Model.Department.Name %> - <%: Model.Department.Shortcut %></legend>
            
            <div class="editor-label">
                <%:Html.Translate("departmentPrincipal") %>
            </div>
            <div class="editor-field">
                <%: Html.DropDownList("SelectedPrincipals", Model.MultiSelectListPrincipals()) %>
            </div>
            
            <p>
                <input type="submit" value="<%:Html.Translate("save") %>" />
            </p>
        </fieldset>

    <% } %>

</asp:Content>

